import type { AppRouteRecordRaw } from '/@/router/types';
// import { t } from '/@/hooks/web/useI18n';
import { REDIRECT_NAME, LAYOUT } from '/@/router/constant';

// 页面上的404
// export const PAGE_NOT_FOUND_ROUTE: AppRouteRecordRaw = {
//   path: '/:path(.*)*',
//   name: 'ErrorPage',
//   component: LAYOUT,
//   meta: {
//     title: 'ErrorPage',
//     hideBreadcrumb: true,
//     hideMenu: true,
//   },
//   children: [
//     {
//       path: '/:path(.*)*',
//       name: 'ErrorPage',
//       component: EXCEPTION_COMPONENT,
//       meta: {
//         title: 'ErrorPage',
//         hideBreadcrumb: true,
//       },
//     },
//   ],
// };

export const REDIRECT_ROUTE: AppRouteRecordRaw = {
  path: '/redirect',
  name: REDIRECT_NAME,
  component: LAYOUT,
  meta: {
    title: REDIRECT_NAME,
    hideBreadcrumb: true,
    hideMenu: true,
  },
  children: [
    {
      path: '/redirect/:path(.*)',
      name: REDIRECT_NAME,
      component: () => import('/@/views/sys/redirect/index.vue'),
      meta: {
        title: REDIRECT_NAME,
        hideBreadcrumb: true,
      },
    },
  ],
};
